package com.ccb.sc.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.ccb.sc.order.vo.OrderExchangeListVo;
import com.ccb.sc.common.modules.order.entity.OrderExchange;
import lombok.Data;
import org.apache.ibatis.annotations.Param;

import java.time.LocalDate;

/**
 * @author ken
 * @version 1.0
 * @date 2022/8/14 15:00
 */
public interface AppOrderExchangeMapper extends BaseMapper<OrderExchange> {


    Page<OrderExchangeListVo> selectByQueryParam(Page<OrderExchange> page, @Param("params") QueryParam params);


    @Data
    class QueryParam {
        private Long memberId;

        private Integer exchangeStatus;

        private LocalDate startDate;

        private LocalDate endDate;
    }
}
